Bitmap for UWP
Create<T>(Device,BindFlags,T,Int32,ResourceUsage,CpuAccessFlags,ResourceMiscFlags,Int32) メソッド

C1.UWP.DX アセンブリ > C1.Util.DX.Direct3D11 名前空間 > Buffer クラス > Create メソッド : Create<T>(Device,BindFlags,T,Int32,ResourceUsage,CpuAccessFlags,ResourceMiscFlags,Int32) メソッド
Type of the data to upload
The device with which to associate the buffer.
Flags specifying how the buffer will be bound to the pipeline.
Initial data used to initialize the buffer.
The size, in bytes, of the buffer. If 0 is specified, sizeof(T) is used.
The usage pattern for the buffer.
Flags specifying how the buffer will be accessible from the CPU.
Miscellaneous resource options.
The size (in bytes) of the structure element for structured buffers.
Creates a new instance of the Bufferclass.
シンタックス
'宣言
 
Public Overloads Shared Function Create(Of T As {New, Struct})( _
   ByVal device As Device, _
   ByVal bindFlags As BindFlags, _
   ByRef data As T, _
   Optional ByVal sizeInBytes As System.Integer, _
   Optional ByVal usage As ResourceUsage, _
   Optional ByVal accessFlags As CpuAccessFlags, _
   Optional ByVal miscFlags As ResourceMiscFlags, _
   Optional ByVal structureByteStride As System.Integer _
) As Buffer
public static Buffer Create<T>( 
   Device device,
   BindFlags bindFlags,
   ref T data,
   System.int sizeInBytes,
   ResourceUsage usage,
   CpuAccessFlags accessFlags,
   ResourceMiscFlags miscFlags,
   System.int structureByteStride
)
where T: new(), struct

パラメータ

device
The device with which to associate the buffer.
bindFlags
Flags specifying how the buffer will be bound to the pipeline.
data
Initial data used to initialize the buffer.
sizeInBytes
The size, in bytes, of the buffer. If 0 is specified, sizeof(T) is used.
usage
The usage pattern for the buffer.
accessFlags
Flags specifying how the buffer will be accessible from the CPU.
miscFlags
Miscellaneous resource options.
structureByteStride
The size (in bytes) of the structure element for structured buffers.

型パラメータ

T
Type of the data to upload

戻り値の型

An initialized buffer
参照

Buffer クラス
Buffer メンバ
オーバーロード一覧